import request from '@/utils/request'

// 查询货物建材列表
export function listGbmd(query) {
  return request({
    url: '/goods/gbmd/list',
    method: 'get',
    params: query
  })
}

// 查询货物建材详细
export function getGbmd(goodsId) {
  return request({
    url: '/goods/gbmd/' + goodsId,
    method: 'get'
  })
}

// 新增货物建材
export function addGbmd(data) {
  return request({
    url: '/goods/gbmd',
    method: 'post',
    data: data
  })
}

// 修改货物建材
export function updateGbmd(data) {
  return request({
    url: '/goods/gbmd',
    method: 'put',
    data: data
  })
}

// 删除货物建材
export function delGbmd(goodsId) {
  return request({
    url: '/goods/gbmd/' + goodsId,
    method: 'delete'
  })
}
